package ldh.im.fxgui.component;

import javafx.scene.layout.StackPane;
import ldh.im.fxbase.richtext.ImTextArea;
import org.fxmisc.flowless.VirtualizedScrollPane;

public class ScrollImTextArea extends StackPane {

    private ImTextArea textArea = new ImTextArea();

    public ScrollImTextArea() {
        VirtualizedScrollPane virtualizedScrollPane = new VirtualizedScrollPane(textArea);
        this.getChildren().add(virtualizedScrollPane);
    }

    public ImTextArea getTextArea() {
        return textArea;
    }

}
